package com.whitedust.ltzf.payments.nativepay.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @author A
 * @since 2025/7/25 13:39
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PrepayResponse {
    private int code;

    /**
     * 响应数据
     */
    private DataObject data;

    /**
     * 响应消息
     */
    private String msg;

    /**
     * 请求 ID
     */
    @JsonProperty("request_id")
    @JsonIgnoreProperties(ignoreUnknown = true)
    private String requestId;
    @Data
    public static class DataObject {
        /**
         * 微信支付二维码链接
         */
        @JsonProperty("code_url")
        private String codeUrl;

        /**
         * 二维码图片链接
         */
        @JsonProperty("QRcode_url")
        private String qrCodeUrl;
    }
}
